import Shop1 from '../component/Shop1'
import {connect} from 'react-redux'
import React,{Component} from 'react'
const mapStateToProps=(state)=>{
  return{
    arr:state,
  }
}
//shijian
const mapDispatchToProps=(dispatch)=>{
  return{
    add:(a)=>{
      dispatch({
        type:"jia",
        text:a
      })
    },
    jian:(a)=>{
      dispatch({
        type:"jian",
        text:a
      })
    },
    shan:(a)=>{
      dispatch({
        type:"shan",
        text:a
      })
    },
    del:()=>{
      dispatch({
        type:"del"
      })
    },
    // zongjia:()=>{
    //   dispatch({
    //     type:"zongjia"
    //   })
    // }
  }
}
const Coun=connect(
  mapStateToProps,
  mapDispatchToProps


)(Shop1)
export default Coun